#region Using References

using System.Data.Entity.ModelConfiguration;
using Beaker.OpenCube.CubeManager.Model.Entities;

#endregion

namespace Beaker.OpenCube.CubeManager.Model.Configurations
{
	internal sealed class MachineConfiguration
		: EntityTypeConfiguration<Machine>
	{
		public MachineConfiguration()
		{
			Property( m => m.IPAddressString )
				.HasColumnName( "IPAddress" );
			Ignore( m => m.IPAddress );

			HasMany( m => m.RoleSets )
				.WithMany();

			ToTable( "Machine" );
		}
	}
}